package com.sharedlease.Feign;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sharedlease.entity.Comment;
import com.sharedlease.entity.Indent;
import com.sharedlease.entity.R;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
public interface CommentClient extends BaseMapper<Comment> {
    public Comment getCommentById(@PathVariable Long id);
    public List<Comment> getCommentList();
    public R saveComment(@RequestBody Comment comment);
    public R deleteCommentById(@RequestBody Comment comment);
    public R updateCommentById(@RequestBody Comment comment);
    public List<Comment> getCommentsByUid(@PathVariable Long uid);
}
